package com.itcoon.cloud.framework.webmvc.trace.enums;


import com.itcoon.cloud.framework.enums.ValueEnum;

public enum LogSegment implements ValueEnum<Integer, LogSegment> {
    METHOD(10),
    URI(20),
    PARAMETER(30),
    REQUEST_BODY(40),
    RESPONSE_BODY(50),
    REQUEST_HEADER(60),

    USER_IP(70),
    DURATION(80),

    STATUS(90),

    RESPONSE_HEADER(100);

    private final int code;

    LogSegment(int code) {
        this.code = code;
    }

    @Override
    public Integer value() {
        return this.code;
    }

}
